package nc.bs.cad.plantbusiness;

import nc.bs.dao.BaseDAO;
import nc.bs.pub.compiler.AbstractCompiler2;
import nc.bs.trade.comdelete.BillDelete;
import nc.vo.pub.AggregatedValueObject;
import nc.vo.pub.BusinessException;

public class WjFlBillDelete extends AbstractCompiler2 {
	
	public AggregatedValueObject deleteBill(AggregatedValueObject billVo) throws BusinessException {
		
		String pk_mainbill =billVo.getParentVO().getPrimaryKey();
		String deletesql   =" delete from cad_cls_devalres where pk_mainbill='"+pk_mainbill+"' ";
		new BaseDAO().executeUpdate(deletesql);
		
		billVo = new BillDelete().deleteBill(billVo);
		return billVo;
	}

}
